package com.aaa.service;

import com.aaa.entity.User;
import com.aaa.util.DefaultMsg;
import com.aaa.util.TableData;

import javax.swing.*;
import java.util.List;

public interface UserService {
    public User checkUser(User user);

    public TableData<User> listPage(String keyword, Integer page, Integer limit);

    public DefaultMsg saveOrUpdate(User user);

    public DefaultMsg checkUsername(String username, Integer id);

    public DefaultMsg delete(Integer id);

    /*
     * 添加用户职位
     * */
    public  DefaultMsg addRole(User user);

    public DefaultMsg updatePassword(User user);



}
